import request from '@/utils/request'

//快递列表
export function getExpressInfo(id) {
  return request({
    url: '/expressInfo/get/by/expressInfo/'+id,
    method: 'GET',
  })
}

//新增快递提交
export function addExpressInfo(data) {
  return request({
    url:  '/expressInfo',
    method: 'PUT',
	data
  })
}
//签收快递
export function receiveExpressInfo(data) {
  return request({
    url:  '/expressInfo/updateExpressInfoMainBody',
    method: 'POST',
	data
  })
}
//获取快递角标
export function getExpressCount(id) {
  return request({
    url: `/expressInfo/get/by/expressInfo/count/${id}`,
    method: 'GET',
  })
}

//获取快递列表
export function getExpressAgencyAllCourier(data) {
  return request({
    url: `/expressInfo/agencyAllCourier`,
    method: 'POST',
	data
  })
}

//获取订单  已快递的资料
export function getExpressInfoningbo(id) {
  return request({
    url: `/expressInfo/get/by/expressInfo/ningbo/${id}`,
    method: 'GET',
  })
}